/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ViewOptions.java
 *
 * Created on 07 7, 12, 11:42:07 AM
 */
package monitor;
import java.awt.Color;
import java.awt.Container;
/**
 *
 * @author Charles
 */

public class ViewOptions extends javax.swing.JFrame {

    private Container c;
    /** Creates new form ViewOptions */
    public ViewOptions() {
        initComponents();
        c = getContentPane();
        c.setBackground(Color.white);

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTextField1 = new javax.swing.JTextField();
        BtnCancel = new javax.swing.JButton();
        BtnSched = new javax.swing.JButton();
        BtnTutee = new javax.swing.JButton();
        BtnTutor = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("View Options");

        jTextField1.setBackground(new java.awt.Color(255, 255, 255));
        jTextField1.setEditable(false);
        jTextField1.setFont(new java.awt.Font("Modern No. 20", 0, 18)); // NOI18N
        jTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextField1.setText("Which would you like to view?");
        jTextField1.setBorder(null);
        jTextField1.setFocusable(false);

        BtnCancel.setBackground(new java.awt.Color(255, 255, 255));
        BtnCancel.setFont(new java.awt.Font("Modern No. 20", 0, 22));
        BtnCancel.setForeground(new java.awt.Color(0, 153, 0));
        BtnCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/CancelOption.png"))); // NOI18N
        BtnCancel.setText("Cancel");
        BtnCancel.setBorder(null);
        BtnCancel.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        BtnCancel.setFocusable(false);
        BtnCancel.setHorizontalAlignment(javax.swing.SwingConstants.LEADING);
        BtnCancel.setIconTextGap(32);
        BtnCancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnCancelActionPerformed(evt);
            }
        });

        BtnSched.setBackground(new java.awt.Color(255, 255, 255));
        BtnSched.setFont(new java.awt.Font("Modern No. 20", 0, 22));
        BtnSched.setForeground(new java.awt.Color(0, 153, 0));
        BtnSched.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/schedule.png"))); // NOI18N
        BtnSched.setText("Schedule");
        BtnSched.setBorder(null);
        BtnSched.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        BtnSched.setFocusable(false);
        BtnSched.setHorizontalAlignment(javax.swing.SwingConstants.LEADING);
        BtnSched.setIconTextGap(32);
        BtnSched.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnSchedActionPerformed(evt);
            }
        });

        BtnTutee.setBackground(new java.awt.Color(255, 255, 255));
        BtnTutee.setFont(new java.awt.Font("Modern No. 20", 0, 22));
        BtnTutee.setForeground(new java.awt.Color(0, 153, 0));
        BtnTutee.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/Tutee.png"))); // NOI18N
        BtnTutee.setText("Tutee");
        BtnTutee.setBorder(null);
        BtnTutee.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        BtnTutee.setFocusable(false);
        BtnTutee.setHorizontalAlignment(javax.swing.SwingConstants.LEADING);
        BtnTutee.setIconTextGap(32);
        BtnTutee.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnTuteeActionPerformed(evt);
            }
        });

        BtnTutor.setBackground(new java.awt.Color(255, 255, 255));
        BtnTutor.setFont(new java.awt.Font("Modern No. 20", 0, 22));
        BtnTutor.setForeground(new java.awt.Color(0, 153, 0));
        BtnTutor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/Tutor.png"))); // NOI18N
        BtnTutor.setText("Tutor");
        BtnTutor.setBorder(null);
        BtnTutor.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        BtnTutor.setFocusable(false);
        BtnTutor.setHorizontalAlignment(javax.swing.SwingConstants.LEADING);
        BtnTutor.setIconTextGap(32);
        BtnTutor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnTutorActionPerformed(evt);
            }
        });

        jButton1.setBackground(new java.awt.Color(255, 255, 255));
        jButton1.setFont(new java.awt.Font("Modern No. 20", 0, 22));
        jButton1.setForeground(new java.awt.Color(0, 153, 0));
        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/TutorGrade.png"))); // NOI18N
        jButton1.setText("Tutor Grade");
        jButton1.setBorder(null);
        jButton1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        jButton1.setFocusable(false);
        jButton1.setHorizontalAlignment(javax.swing.SwingConstants.LEADING);
        jButton1.setIconTextGap(36);
        jButton1.setMaximumSize(new java.awt.Dimension(159, 89));
        jButton1.setMinimumSize(new java.awt.Dimension(159, 89));
        jButton1.setPreferredSize(new java.awt.Dimension(159, 89));
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE)
                    .addComponent(BtnTutor, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE)
                    .addComponent(BtnTutee, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE)
                    .addComponent(BtnSched, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE)
                    .addComponent(BtnCancel, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE)
                    .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addComponent(BtnTutor, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(BtnTutee, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(BtnSched, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(BtnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(14, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void BtnTutorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnTutorActionPerformed
// TODO add your handling code here:
    
    ViewTutor tutor = new ViewTutor();
    tutor.setLocationRelativeTo(null);
    tutor.setVisible(true);
    this.setVisible(false);
}//GEN-LAST:event_BtnTutorActionPerformed

private void BtnTuteeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnTuteeActionPerformed
// TODO add your handling code here:
    ViewTutee tutee = new ViewTutee();
    tutee.setLocationRelativeTo(null);
    tutee.setVisible(true);
    this.setVisible(false);
}//GEN-LAST:event_BtnTuteeActionPerformed

private void BtnCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnCancelActionPerformed
// TODO add your handling code here:
    this.dispose();
}//GEN-LAST:event_BtnCancelActionPerformed

private void BtnSchedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnSchedActionPerformed
// TODO add your handling code here:
    ViewSched sched = new ViewSched();
    sched.setLocationRelativeTo(null);
    sched.setVisible(true);
    this.setVisible(false);
}//GEN-LAST:event_BtnSchedActionPerformed

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// TODO add your handling code here:
    
    ViewTutorGrades tg = new ViewTutorGrades();
    tg.setLocationRelativeTo(null);
    tg.setVisible(true);
    this.setVisible(false);
}//GEN-LAST:event_jButton1ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(ViewOptions.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(ViewOptions.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(ViewOptions.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(ViewOptions.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new ViewOptions().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BtnCancel;
    private javax.swing.JButton BtnSched;
    private javax.swing.JButton BtnTutee;
    private javax.swing.JButton BtnTutor;
    private javax.swing.JButton jButton1;
    private javax.swing.JTextField jTextField1;
    // End of variables declaration//GEN-END:variables
}
